<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<c:set var="language" value="${not empty param.language ? param.language : not empty language ? language : pageContext.request.locale}" scope="session" />
<fmt:setLocale value="${language}" />
<fmt:setBundle basename="baiwa.rta.language.common" />

<!DOCTYPE html>
<html lang="${language}">
<head>
	<meta charset="utf-8">
	<title>:: Royal Thai Army :: <tiles:insertAttribute name="title" ignore="true" /></title>
	<meta name="description" content="">
	<meta name="author" content="baiwa">
	
	<link href='../images/Army-Officer-icon.ico' rel='icon' type='image/x-icon' />
	<link rel="stylesheet" href="../css/style.css">
	<link rel="stylesheet" href="../css/common-style.css">
	<link rel="stylesheet" href="../css/jmenu.css">
	<link rel="stylesheet" href="../theme/smoothness/jquery-ui-1.10.4.custom.css"" />
	<link rel="stylesheet" href="../css/bootstrap.css">
	<link rel="stylesheet" href="../css/jquery.dataTables.css">
	<link rel="stylesheet" href="../css/font-awesome.min.css" />
	<link rel="stylesheet" href="../css/notifIt.css" />
	<link rel="stylesheet" href="../css/jquery.ui.timepicker.css" />
	
	<!-- <link rel="stylesheet" href="../css/jquery-ui.css" type="text/css" /> -->	
<!-- 	<link rel="stylesheet" href="../css/bootstrap-a.css"> -->	
<!-- 	<link rel="stylesheet" href="../css/sb-admin.css" /> -->

	
	<script type="text/javascript"  charset="utf-8"  src="../js/lib/jquery-1.10.2.js"></script>
	<script type="text/javascript"  charset="utf-8"  src="../js/lib/jquery.dataTables.js"></script>
	<script type="text/javascript" src="../js/lib/bootstrap-paginator.js"></script>
	<script type="text/javascript" src="../js/lib/jquery-ui.js"></script>
	<script type="text/javascript" src="../js/lib/jMenu.jquery.min.js"></script>
	<script type="text/javascript" src="../js/lib/jquery.easy-confirm-dialog.js"></script>
	<script type="text/javascript" src="../js/lib/jquery.blockUI.js"></script>
	<script type="text/javascript" src="../js/lib/notifIt.js"></script>
	<script type="text/javascript" src="../js/lib/jquery.ui.timepicker.js"></script>
	<script type="text/javascript" src="../js/lib/jquery.validate.min.js"></script>
	
	
	<script type="text/javascript" src="../js/lib/common.js"></script>
	<script type="text/javascript" src="../js/lib/main.js"></script>
	
	<script type="text/javascript" src="../js/controller/common/CommonCombobox.js" ></script>
	
	<!-- <script type="text/javascript" src="../js/lib/jquery.blockUI.js"></script> -->
	
	<script>
		jQuery(function($) {
			var s = '<tiles:insertAttribute name="screenname" ignore="true" />';
			$('#screename').html(s);
		});
	</script>
</head>
<body>
	<tiles:insertAttribute name="header" />
	<tiles:insertAttribute name="body" />
<%-- 	<tiles:insertAttribute name="title" ignore="true" /> --%>
	<tiles:insertAttribute name="footer" />
	
	<c:if test="${not empty msg }">
		<script>
			var msgtype =  "${msg.type.type}";
			var msgtxt =  "${msg.msg}";
			if(msgtxt == 'S001'){
			    msgtxt = "Save Success !";
			}else if(msgtxt == 'D001'){
			    msgtxt = "Delete Success !";
			}
			MsgAlert(msgtype, msgtxt);
		</script>
	</c:if>
	
</body>
</html>